﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MuzičkiFeršterker
{
    /// <summary>
    /// Interface for basic engine methods
    /// </summary>
    interface IPlay
    {
        /// <summary>
        /// Starts the playback
        /// </summary>
        void Play();
        /// <summary>
        /// Starts or pauses the playback
        /// </summary>
        void PlayPause();
        /// <summary>
        /// Pauses the playback
        /// </summary>
        void Pause();
        /// <summary>
        /// Resumes the playback
        /// </summary>
        void Resume();
        /// <summary>
        /// Stops the playback (pause and time reset to 0)
        /// </summary>
        void Stop();
        /// <summary>
        /// Gets position of current playback
        /// </summary>
        /// <returns>Current playback position in ms</returns>
        int getPosition();
        /// <summary>
        /// Set position of playback
        /// </summary>
        /// <param name="pos">Time in ms</param>
        void setPosition(int pos);
        /// <summary>
        /// Returns if playback is finished
        /// </summary>
        /// <returns>TRUE if finished, FALSE if still playing/paused/stopped</returns>
        bool isFinished();
    }
}
